﻿// ConsoleApplication1.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并

#include<iostream>
#include<regex>
#include<string>
#include<vector>
using namespace std;
int main() {
	string s = "php 90.5 java 95 python 85.5 5a5";
	regex reg("\\d.\\.\\d*");
	sregex_iterator it(s.begin(), s.end(), reg);
	auto end_it = sregex_iterator();
	while (it != end_it) {
		cout << it->str() << endl;
		++it;
	}
}
